package com.moto.entity;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 车辆表
 * </p>
 *
 * @author afei
 * @since 2023-08-28
 */
@Getter
@Setter
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆名称
     */
    private String carName;

    /**
     * 价格
     */
    private Double price;

    /**
     * 颜色
     */
    private String gender;

    /**
     * 款式
     */
    private String type;

    /**
     * 排量
     */
    private String displacement;

    /**
     * 照片
     */
    private String photo;

    /**
     * 评分
     */
    private Double mark;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDateTime updateDate;

    /**
     * 修改员工
     */
    private Long updateId;

    /**
     * 车辆删除状态
     */
    @ApiModelProperty("账号状态 正常:1，删除: 0")
    @TableLogic(value = "1", delval = "0")
    private Integer isDelete;
}
